<script setup>
import { ref, inject } from "vue";
const name = inject("name");
const user = inject("user");
</script>

<template>
  <div>孙子组件</div>
  <p>爷爷组件传的数据=>{{ name }}</p>
  <p>爷爷组件传的数据=>{{ user }}</p>
</template>

<style scoped></style>
